[user:2]
<script src="[webdir]/api/SpryAssets/snapolSpryMenuBar.js" type="text/javascript"></script> 
<link href="[webdir]/api/SpryAssets/snapolSpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> 
<ul id="snapolMenu" class="snapolMenuBarHorizontal">
<li><a class="snapolMenuBarItemSubmenu" href="[webdir]/">Home</a></li>
[sql:SELECT * FROM (SELECT titel,_url,ajax,snapol_menu.* FROM snapol_menu,snapol_page WHERE _snapol_page=snapol_page.id 
UNION 
SELECT titel,_url,ajax,snapol_menu.* FROM snapol_menu,snapol2_app_page WHERE _snapol2_app_page = snapol2_app_page.id AND snapol2_app_page._snapol2_usergroup &lt;= [session:userGrp]) a  WHERE item_parent_id=0 ORDER BY item_order]   

    [if:[ajax]::=::1]
<li><a class="MenuBarItemSubmenu" href="#" onclick="showWindow('[webdir][_url]');">[titel]</a>[if_end]
        [if:[ajax]::!=::1]<li><a class="MenuBarItemSubmenu" href="[webdir][_url]">[titel]</a>[if_end]
  
                                                                           
    <ul>
      [sql:SELECT * FROM (select titel titel2, _url url2,ajax ajax2, snapol_menu.* from snapol_menu,snapol_page where _snapol_page=snapol_page.id 
union 
select titel titel2, _url url2, ajax ajax2, snapol_menu.* from snapol_menu,snapol2_app_page where _snapol2_app_page = snapol2_app_page.id AND snapol2_app_page._snapol2_usergroup &lt;= [session:userGrp]) a  WHERE item_parent_id=[id] ORDER BY item_order]
        [if:[ajax2]::=::1]
<li><a href="#" onclick="showWindow('[webdir][url2]');">[titel2]</a></li>[if_end]
        [if:[ajax2]::!=::1]<li><a href="[webdir][url2]">[titel2]</a></li>[if_end]
      
      
     [data_end]      
    </ul>
  </li>
  [data_end]
[user_end]
[user:10]
<li><a class="snapolMenuBarItemSubmenu" href="">Intern</a>
<ul>
[menu:intern]
<li><a href="[webdir][_url]">[titel]</a></li>
[menu_end] 
 </ul> 
 </li>
 

 <li><a class="snapolMenuBarItemSubmenu" href="">App</a>
<ul>
[data:snapol2_app::::app]
<li><a href="[webdir]/app/[app]/">[app]</a></li>
[data_end] 
 </ul> 
 </li>
 
 
 <li><a href="[webdir]/app2">   Code</a></li>
 [user_end]
 [user:2]
 <li><strong><a href="">[session:login]</a></strong></li>
 <li><a href="/logout">Logout</a></li>
</ul>
<p><br />
  <br />
</p>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("snapolMenu", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>

[user_end]